home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / E-G / Financial Portfolio v1.8.cpt / Financial Portfolio v1.8 / background_23780.xml < prev    next >
Extensible Markup Language  |  1991-09-30  |  34KB  |  692 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE background PUBLIC "-//Apple, Inc.//DTD background V 2.0//EN" "" >
  3. <background>
  4.     <id>23780</id>
  5.     <filler1>0</filler1>
  6.     <bitmap>BMAP_23868.pbm</bitmap>
  7.     <cantDelete> <true /> </cantDelete>
  8.     <showPict> <true /> </showPict>
  9.     <dontSearch> <false /> </dontSearch>
  10.     <link rel="stylesheet" type="text/css" href="stylesheet_3246.css" />
  11.     <part>
  12.         <id>37</id>
  13.         <type>field</type>
  14.         <visible> <false /> </visible>
  15.         <dontWrap> <false /> </dontWrap>
  16.         <dontSearch> <false /> </dontSearch>
  17.         <sharedText> <false /> </sharedText>
  18.         <fixedLineHeight> <true /> </fixedLineHeight>
  19.         <autoTab> <true /> </autoTab>
  20.         <lockText> <false /> </lockText>
  21.         <rect>
  22.             <left>7</left>
  23.             <top>0</top>
  24.             <right>97</right>
  25.             <bottom>24</bottom>
  26.         </rect>
  27.         <style>transparent</style>
  28.         <autoSelect> <false /> </autoSelect>
  29.         <showLines> <false /> </showLines>
  30.         <wideMargins> <false /> </wideMargins>
  31.         <multipleLines> <false /> </multipleLines>
  32.         <reservedFamily> 0 </reservedFamily>
  33.         <titleWidth>0</titleWidth>
  34.         <icon>0</icon>
  35.         <textAlign>center</textAlign>
  36.         <font>Helvetica</font>
  37.         <textSize>10</textSize>
  38.         <textStyle>bold</textStyle>
  39.         <textHeight>10</textHeight>
  40.         <name>labels title</name>
  41.         <script></script>
  42.     </part>
  43.     <part>
  44.         <id>38</id>
  45.         <type>field</type>
  46.         <visible> <false /> </visible>
  47.         <dontWrap> <false /> </dontWrap>
  48.         <dontSearch> <false /> </dontSearch>
  49.         <sharedText> <false /> </sharedText>
  50.         <fixedLineHeight> <true /> </fixedLineHeight>
  51.         <autoTab> <true /> </autoTab>
  52.         <lockText> <false /> </lockText>
  53.         <rect>
  54.             <left>100</left>
  55.             <top>0</top>
  56.             <right>167</right>
  57.             <bottom>23</bottom>
  58.         </rect>
  59.         <style>transparent</style>
  60.         <autoSelect> <false /> </autoSelect>
  61.         <showLines> <false /> </showLines>
  62.         <wideMargins> <false /> </wideMargins>
  63.         <multipleLines> <false /> </multipleLines>
  64.         <reservedFamily> 0 </reservedFamily>
  65.         <titleWidth>0</titleWidth>
  66.         <icon>0</icon>
  67.         <textAlign>left</textAlign>
  68.         <font>Helvetica</font>
  69.         <textSize>10</textSize>
  70.         <textStyle>plain</textStyle>
  71.         <textHeight>10</textHeight>
  72.         <name>graph Title</name>
  73.         <script></script>
  74.     </part>
  75.     <part>
  76.         <id>39</id>
  77.         <type>field</type>
  78.         <visible> <false /> </visible>
  79.         <dontWrap> <true /> </dontWrap>
  80.         <dontSearch> <false /> </dontSearch>
  81.         <sharedText> <false /> </sharedText>
  82.         <fixedLineHeight> <true /> </fixedLineHeight>
  83.         <autoTab> <true /> </autoTab>
  84.         <lockText> <false /> </lockText>
  85.         <rect>
  86.             <left>166</left>
  87.             <top>9</top>
  88.             <right>226</right>
  89.             <bottom>25</bottom>
  90.         </rect>
  91.         <style>transparent</style>
  92.         <autoSelect> <false /> </autoSelect>
  93.         <showLines> <false /> </showLines>
  94.         <wideMargins> <false /> </wideMargins>
  95.         <multipleLines> <false /> </multipleLines>
  96.         <reservedFamily> 0 </reservedFamily>
  97.         <titleWidth>0</titleWidth>
  98.         <icon>0</icon>
  99.         <textAlign>left</textAlign>
  100.         <font>Geneva</font>
  101.         <textSize>9</textSize>
  102.         <textStyle>bold</textStyle>
  103.         <textHeight>12</textHeight>
  104.         <name>units</name>
  105.         <script>on closeField-- Requires handler: shareTheDatashareTheDataput false into bg field "Drew Data"pass closeFieldend closeFieldon exitField-- Requires handler: shareTheDatashareTheDatapass exitFieldend exitFieldon returnInFieldend returnInField</script>
  106.     </part>
  107.     <part>
  108.         <id>36</id>
  109.         <type>field</type>
  110.         <visible> <false /> </visible>
  111.         <dontWrap> <true /> </dontWrap>
  112.         <dontSearch> <false /> </dontSearch>
  113.         <sharedText> <false /> </sharedText>
  114.         <fixedLineHeight> <true /> </fixedLineHeight>
  115.         <autoTab> <false /> </autoTab>
  116.         <lockText> <false /> </lockText>
  117.         <rect>
  118.             <left>7</left>
  119.             <top>24</top>
  120.             <right>97</right>
  121.             <bottom>117</bottom>
  122.         </rect>
  123.         <style>opaque</style>
  124.         <autoSelect> <false /> </autoSelect>
  125.         <showLines> <false /> </showLines>
  126.         <wideMargins> <false /> </wideMargins>
  127.         <multipleLines> <false /> </multipleLines>
  128.         <reservedFamily> 0 </reservedFamily>
  129.         <titleWidth>0</titleWidth>
  130.         <icon>0</icon>
  131.         <textAlign>right</textAlign>
  132.         <font>Geneva</font>
  133.         <textSize>9</textSize>
  134.         <textStyle>plain</textStyle>
  135.         <textHeight>12</textHeight>
  136.         <name>labels</name>
  137.         <script></script>
  138.     </part>
  139.     <part>
  140.         <id>35</id>
  141.         <type>field</type>
  142.         <visible> <false /> </visible>
  143.         <dontWrap> <true /> </dontWrap>
  144.         <dontSearch> <false /> </dontSearch>
  145.         <sharedText> <false /> </sharedText>
  146.         <fixedLineHeight> <true /> </fixedLineHeight>
  147.         <autoTab> <false /> </autoTab>
  148.         <lockText> <true /> </lockText>
  149.         <rect>
  150.             <left>101</left>
  151.             <top>24</top>
  152.             <right>166</right>
  153.             <bottom>118</bottom>
  154.         </rect>
  155.         <style>transparent</style>
  156.         <autoSelect> <false /> </autoSelect>
  157.         <showLines> <false /> </showLines>
  158.         <wideMargins> <false /> </wideMargins>
  159.         <multipleLines> <false /> </multipleLines>
  160.         <reservedFamily> 0 </reservedFamily>
  161.         <titleWidth>0</titleWidth>
  162.         <icon>0</icon>
  163.         <textAlign>right</textAlign>
  164.         <font>Geneva</font>
  165.         <textSize>9</textSize>
  166.         <textStyle>plain</textStyle>
  167.         <textHeight>12</textHeight>
  168.         <name>data</name>
  169.         <script></script>
  170.     </part>
  171.     <part>
  172.         <id>52</id>
  173.         <type>field</type>
  174.         <visible> <false /> </visible>
  175.         <dontWrap> <false /> </dontWrap>
  176.         <dontSearch> <false /> </dontSearch>
  177.         <sharedText> <false /> </sharedText>
  178.         <fixedLineHeight> <true /> </fixedLineHeight>
  179.         <autoTab> <false /> </autoTab>
  180.         <lockText> <false /> </lockText>
  181.         <rect>
  182.             <left>0</left>
  183.             <top>327</top>
  184.             <right>103</right>
  185.             <bottom>342</bottom>
  186.         </rect>
  187.         <style>transparent</style>
  188.         <autoSelect> <false /> </autoSelect>
  189.         <showLines> <false /> </showLines>
  190.         <wideMargins> <false /> </wideMargins>
  191.         <multipleLines> <false /> </multipleLines>
  192.         <reservedFamily> 0 </reservedFamily>
  193.         <titleWidth>0</titleWidth>
  194.         <icon>0</icon>
  195.         <textAlign>left</textAlign>
  196.         <font>Geneva</font>
  197.         <textSize>9</textSize>
  198.         <textStyle>plain</textStyle>
  199.         <textHeight>12</textHeight>
  200.         <name>graph rect</name>
  201.         <script></script>
  202.     </part>
  203.     <part>
  204.         <id>58</id>
  205.         <type>button</type>
  206.         <visible> <false /> </visible>
  207.         <reserved5> 0 </reserved5>
  208.         <reserved4> 0 </reserved4>
  209.         <reserved3> 0 </reserved3>
  210.         <reserved2> 0 </reserved2>
  211.         <reserved1> 0 </reserved1>
  212.         <enabled> <true /> </enabled>
  213.         <rect>
  214.             <left>253</left>
  215.             <top>13</top>
  216.             <right>384</right>
  217.             <bottom>32</bottom>
  218.         </rect>
  219.         <style>roundrect</style>
  220.         <showName> <true /> </showName>
  221.         <highlight> <false /> </highlight>
  222.         <autoHighlight> <true /> </autoHighlight>
  223.         <sharedHighlight> <true /> </sharedHighlight>
  224.         <family>0</family>
  225.         <titleWidth>0</titleWidth>
  226.         <icon>0</icon>
  227.         <textAlign>center</textAlign>
  228.         <font>Chicago</font>
  229.         <textSize>12</textSize>
  230.         <textStyle>plain</textStyle>
  231.         <name>drawGraph</name>
  232.         <script>on mouseUp-- Requires handler: drawChartdrawChartend mouseUp</script>
  233.     </part>
  234.     <part>
  235.         <id>64</id>
  236.         <type>field</type>
  237.         <visible> <false /> </visible>
  238.         <dontWrap> <true /> </dontWrap>
  239.         <dontSearch> <false /> </dontSearch>
  240.         <sharedText> <false /> </sharedText>
  241.         <fixedLineHeight> <true /> </fixedLineHeight>
  242.         <autoTab> <false /> </autoTab>
  243.         <lockText> <true /> </lockText>
  244.         <rect>
  245.             <left>168</left>
  246.             <top>20</top>
  247.             <right>226</right>
  248.             <bottom>117</bottom>
  249.         </rect>
  250.         <style>transparent</style>
  251.         <autoSelect> <false /> </autoSelect>
  252.         <showLines> <false /> </showLines>
  253.         <wideMargins> <true /> </wideMargins>
  254.         <multipleLines> <false /> </multipleLines>
  255.         <reservedFamily> 0 </reservedFamily>
  256.         <titleWidth>0</titleWidth>
  257.         <icon>0</icon>
  258.         <textAlign>right</textAlign>
  259.         <font>Geneva</font>
  260.         <textSize>9</textSize>
  261.         <textStyle>plain</textStyle>
  262.         <textHeight>12</textHeight>
  263.         <name>percents</name>
  264.         <script></script>
  265.     </part>
  266.     <part>
  267.         <id>65</id>
  268.         <type>field</type>
  269.         <visible> <false /> </visible>
  270.         <dontWrap> <false /> </dontWrap>
  271.         <dontSearch> <false /> </dontSearch>
  272.         <sharedText> <false /> </sharedText>
  273.         <fixedLineHeight> <true /> </fixedLineHeight>
  274.         <autoTab> <false /> </autoTab>
  275.         <lockText> <false /> </lockText>
  276.         <rect>
  277.             <left>450</left>
  278.             <top>65</top>
  279.             <right>512</right>
  280.             <bottom>79</bottom>
  281.         </rect>
  282.         <style>rectangle</style>
  283.         <autoSelect> <false /> </autoSelect>
  284.         <showLines> <false /> </showLines>
  285.         <wideMargins> <false /> </wideMargins>
  286.         <multipleLines> <false /> </multipleLines>
  287.         <reservedFamily> 0 </reservedFamily>
  288.         <titleWidth>0</titleWidth>
  289.         <icon>0</icon>
  290.         <textAlign>left</textAlign>
  291.         <font>Geneva</font>
  292.         <textSize>9</textSize>
  293.         <textStyle>plain</textStyle>
  294.         <textHeight>12</textHeight>
  295.         <name>Drew Data</name>
  296.         <script></script>
  297.     </part>
  298.     <part>
  299.         <id>70</id>
  300.         <type>field</type>
  301.         <visible> <false /> </visible>
  302.         <dontWrap> <false /> </dontWrap>
  303.         <dontSearch> <false /> </dontSearch>
  304.         <sharedText> <false /> </sharedText>
  305.         <fixedLineHeight> <true /> </fixedLineHeight>
  306.         <autoTab> <false /> </autoTab>
  307.         <lockText> <true /> </lockText>
  308.         <rect>
  309.             <left>169</left>
  310.             <top>115</top>
  311.             <right>221</right>
  312.             <bottom>129</bottom>
  313.         </rect>
  314.         <style>transparent</style>
  315.         <autoSelect> <false /> </autoSelect>
  316.         <showLines> <false /> </showLines>
  317.         <wideMargins> <false /> </wideMargins>
  318.         <multipleLines> <false /> </multipleLines>
  319.         <reservedFamily> 0 </reservedFamily>
  320.         <titleWidth>0</titleWidth>
  321.         <icon>0</icon>
  322.         <textAlign>right</textAlign>
  323.         <font>Geneva</font>
  324.         <textSize>9</textSize>
  325.         <textStyle>plain</textStyle>
  326.         <textHeight>13</textHeight>
  327.         <name>percent total</name>
  328.         <script>on mouseDown-- Requires handler: updateTotalsupdateTotalsend mouseDown</script>
  329.     </part>
  330.     <part>
  331.         <id>71</id>
  332.         <type>field</type>
  333.         <visible> <false /> </visible>
  334.         <dontWrap> <false /> </dontWrap>
  335.         <dontSearch> <false /> </dontSearch>
  336.         <sharedText> <false /> </sharedText>
  337.         <fixedLineHeight> <true /> </fixedLineHeight>
  338.         <autoTab> <false /> </autoTab>
  339.         <lockText> <true /> </lockText>
  340.         <rect>
  341.             <left>97</left>
  342.             <top>116</top>
  343.             <right>166</right>
  344.             <bottom>131</bottom>
  345.         </rect>
  346.         <style>transparent</style>
  347.         <autoSelect> <false /> </autoSelect>
  348.         <showLines> <false /> </showLines>
  349.         <wideMargins> <false /> </wideMargins>
  350.         <multipleLines> <false /> </multipleLines>
  351.         <reservedFamily> 0 </reservedFamily>
  352.         <titleWidth>0</titleWidth>
  353.         <icon>0</icon>
  354.         <textAlign>right</textAlign>
  355.         <font>Geneva</font>
  356.         <textSize>9</textSize>
  357.         <textStyle>plain</textStyle>
  358.         <textHeight>12</textHeight>
  359.         <name>total</name>
  360.         <script>on mouseDown-- Requires handler: updateTotalsupdateTotalsend mouseDown</script>
  361.     </part>
  362.     <part>
  363.         <id>50</id>
  364.         <type>button</type>
  365.         <visible> <false /> </visible>
  366.         <reserved5> 0 </reserved5>
  367.         <reserved4> 0 </reserved4>
  368.         <reserved3> 0 </reserved3>
  369.         <reserved2> 0 </reserved2>
  370.         <reserved1> 0 </reserved1>
  371.         <enabled> <true /> </enabled>
  372.         <rect>
  373.             <left>277</left>
  374.             <top>149</top>
  375.             <right>531</right>
  376.             <bottom>271</bottom>
  377.         </rect>
  378.         <style>rectangle</style>
  379.         <showName> <false /> </showName>
  380.         <highlight> <false /> </highlight>
  381.         <autoHighlight> <false /> </autoHighlight>
  382.         <sharedHighlight> <true /> </sharedHighlight>
  383.         <family>0</family>
  384.         <titleWidth>0</titleWidth>
  385.         <icon>0</icon>
  386.         <textAlign>center</textAlign>
  387.         <font>Chicago</font>
  388.         <textSize>12</textSize>
  389.         <textStyle>plain</textStyle>
  390.         <name>Legend</name>
  391.         <script>on mouseDown-- Requires handler: doDragBtnset cursor to "Grab Hand"hide bg btn "GrowLegend"doDragBtn name of me,0,62,width of card window,height of card windowset botRight of bg btn "GrowLegend" to botRight of meshow bg btn "GrowLegend"end mouseDownon mouseup-- Requires handler: drawChartdrawChartend mouseup</script>
  392.     </part>
  393.     <part>
  394.         <id>51</id>
  395.         <type>button</type>
  396.         <visible> <false /> </visible>
  397.         <reserved5> 0 </reserved5>
  398.         <reserved4> 0 </reserved4>
  399.         <reserved3> 0 </reserved3>
  400.         <reserved2> 0 </reserved2>
  401.         <reserved1> 0 </reserved1>
  402.         <enabled> <true /> </enabled>
  403.         <rect>
  404.             <left>515</left>
  405.             <top>255</top>
  406.             <right>531</right>
  407.             <bottom>271</bottom>
  408.         </rect>
  409.         <style>rectangle</style>
  410.         <showName> <false /> </showName>
  411.         <highlight> <false /> </highlight>
  412.         <autoHighlight> <false /> </autoHighlight>
  413.         <sharedHighlight> <true /> </sharedHighlight>
  414.         <family>0</family>
  415.         <titleWidth>0</titleWidth>
  416.         <icon>15467</icon>
  417.         <textAlign>center</textAlign>
  418.         <font>Chicago</font>
  419.         <textSize>12</textSize>
  420.         <textStyle>plain</textStyle>
  421.         <name>growLegend</name>
  422.         <script>on mouseDown-- Requires function handlers: validatedData,maxCharsset cursor to arrow-- set icon of me to "Inverse Grow Box"set style of me to rectangleset style of bg btn "Legend" to "rectangle"put the rect of bg btn "Legend" into frameRectput width of me div 2 into halfMyWidthput height of me div 2 into halfMyHeightput number of lines of validatedData(bg field "Data") into dataCountput maxChars(stripReturns(bg field "Labels")) * 8 into maxLabelSizeput maxLabelSize + 70 into maxWidthput (dataCount * 17) + 20 into maxHeightput width of card window into cardWidthput height of card window into cardHeightrepeat until the mouse is upput the mouseLoc into newLocif item 1 of newLoc <= (item 1 of frameRect + maxWidth)then put item 1 of frameRect + (maxWidth - halfMyWidth) ¬¨into item 1 of newLocput min(item 1 of newLoc,cardWidth - halfMyWidth) ¬¨into item 1 of newLocif item 2 of newLoc <= (item 2 of frameRect + maxHeight)then put item 2 of frameRect + (maxHeight - halfMyHeight) ¬¨into item 2 of newLocput min(item 2 of newLoc,cardHeight - halfMyHeight) ¬¨into item 2 of newLocset loc of me to newLocput bottom of me into item 4 of frameRect -- new bottomput right of me into item 3 of frameRect -- new rightset rect of bg btn "Legend" to frameRectend repeat--  set icon of me to "Grow Box"set style of me to rectangleend mouseDownon mouseup-- Requires handlers: drawChartdrawChartend mouseup</script>
  423.     </part>
  424.     <part>
  425.         <id>46</id>
  426.         <type>button</type>
  427.         <visible> <true /> </visible>
  428.         <reserved5> 0 </reserved5>
  429.         <reserved4> 0 </reserved4>
  430.         <reserved3> 0 </reserved3>
  431.         <reserved2> 0 </reserved2>
  432.         <reserved1> 0 </reserved1>
  433.         <enabled> <true /> </enabled>
  434.         <rect>
  435.             <left>11</left>
  436.             <top>99</top>
  437.             <right>270</right>
  438.             <bottom>335</bottom>
  439.         </rect>
  440.         <style>rectangle</style>
  441.         <showName> <false /> </showName>
  442.         <highlight> <false /> </highlight>
  443.         <autoHighlight> <false /> </autoHighlight>
  444.         <sharedHighlight> <true /> </sharedHighlight>
  445.         <family>0</family>
  446.         <titleWidth>0</titleWidth>
  447.         <icon>0</icon>
  448.         <textAlign>center</textAlign>
  449.         <font>Geneva</font>
  450.         <textSize>10</textSize>
  451.         <textStyle>plain</textStyle>
  452.         <name>frame</name>
  453.         <script></script>
  454.     </part>
  455.     <part>
  456.         <id>47</id>
  457.         <type>button</type>
  458.         <visible> <false /> </visible>
  459.         <reserved5> 0 </reserved5>
  460.         <reserved4> 0 </reserved4>
  461.         <reserved3> 0 </reserved3>
  462.         <reserved2> 0 </reserved2>
  463.         <reserved1> 0 </reserved1>
  464.         <enabled> <true /> </enabled>
  465.         <rect>
  466.             <left>254</left>
  467.             <top>319</top>
  468.             <right>270</right>
  469.             <bottom>335</bottom>
  470.         </rect>
  471.         <style>rectangle</style>
  472.         <showName> <false /> </showName>
  473.         <highlight> <false /> </highlight>
  474.         <autoHighlight> <false /> </autoHighlight>
  475.         <sharedHighlight> <true /> </sharedHighlight>
  476.         <family>0</family>
  477.         <titleWidth>0</titleWidth>
  478.         <icon>15467</icon>
  479.         <textAlign>center</textAlign>
  480.         <font>Chicago</font>
  481.         <textSize>12</textSize>
  482.         <textStyle>plain</textStyle>
  483.         <name>grow</name>
  484.         <script>on mouseDownset cursor to arrowput 160 into maxWidthput 172 into maxHeight--set icon of me to "Inverse Grow Box"set style of me to rectangleset style of bg btn "Frame" to rectangleput the rect of bg btn "Frame" into frameRectput width of me div 2 into halfMyWidthput height of me div 2 into halfMyHeightput width of card window into cardWidthput height of card window into cardHeightrepeat until the mouse is upput the mouseLoc into newLocif item 1 of newLoc <= (item 1 of frameRect + maxWidth)then put item 1 of frameRect + (maxWidth - halfMyWidth) ¬¨into item 1 of newLocput min(item 1 of newLoc,cardWidth - halfMyWidth) ¬¨into item 1 of newLocif item 2 of newLoc <= (item 2 of frameRect + maxHeight)then put item 2 of frameRect + (maxHeight - halfMyHeight) ¬¨into item 2 of newLocput min(item 2 of newLoc,cardHeight - halfMyHeight) ¬¨into item 2 of newLocset loc of me to newLocput bottom of me into item 4 of frameRect -- new bottomput right of me into item 3 of frameRect -- new rightset rect of bg btn "Frame" to frameRectend repeat-- set icon of me to "Grow Box"set style of me to rectangleend mouseDownon mouseup-- Requires handlers: saveRect,drawChartsaveRectdrawChartend mouseup</script>
  485.     </part>
  486.     <part>
  487.         <id>75</id>
  488.         <type>button</type>
  489.         <visible> <true /> </visible>
  490.         <reserved5> 0 </reserved5>
  491.         <reserved4> 0 </reserved4>
  492.         <reserved3> 0 </reserved3>
  493.         <reserved2> 0 </reserved2>
  494.         <reserved1> 0 </reserved1>
  495.         <enabled> <true /> </enabled>
  496.         <rect>
  497.             <left>7</left>
  498.             <top>34</top>
  499.             <right>42</right>
  500.             <bottom>64</bottom>
  501.         </rect>
  502.         <style>transparent</style>
  503.         <showName> <false /> </showName>
  504.         <highlight> <false /> </highlight>
  505.         <autoHighlight> <true /> </autoHighlight>
  506.         <sharedHighlight> <true /> </sharedHighlight>
  507.         <family>0</family>
  508.         <titleWidth>0</titleWidth>
  509.         <icon>29114</icon>
  510.         <textAlign>center</textAlign>
  511.         <font>Chicago</font>
  512.         <textSize>12</textSize>
  513.         <textStyle>plain</textStyle>
  514.         <name>go back</name>
  515.         <script>on mouseUpclearscreenchoose browse toolset lockmessages to truevisual iris closego cd networthend mouseUp</script>
  516.     </part>
  517.     <part>
  518.         <id>78</id>
  519.         <type>button</type>
  520.         <visible> <true /> </visible>
  521.         <reserved5> 0 </reserved5>
  522.         <reserved4> 0 </reserved4>
  523.         <reserved3> 0 </reserved3>
  524.         <reserved2> 0 </reserved2>
  525.         <reserved1> 0 </reserved1>
  526.         <enabled> <true /> </enabled>
  527.         <rect>
  528.             <left>461</left>
  529.             <top>16</top>
  530.             <right>503</right>
  531.             <bottom>56</bottom>
  532.         </rect>
  533.         <style>transparent</style>
  534.         <showName> <false /> </showName>
  535.         <highlight> <false /> </highlight>
  536.         <autoHighlight> <true /> </autoHighlight>
  537.         <sharedHighlight> <false /> </sharedHighlight>
  538.         <family>0</family>
  539.         <titleWidth>0</titleWidth>
  540.         <icon>1007</icon>
  541.         <textAlign>center</textAlign>
  542.         <font>Chicago</font>
  543.         <textSize>12</textSize>
  544.         <textStyle>plain</textStyle>
  545.         <name>Portfolio Report</name>
  546.         <script>on mouseUpput "Ready to print out the graph? (printer on, ...)" into qqput return & return & "The dark background areas will be made white before printing to save ink/toner." after qqanswer qq with "cancel" or "Print"if it is "cancel" then exit mouseUpprintGraphend mouseUpon printGraphshow bg button "white"print this cardhide bg button "white"end printGraph</script>
  547.     </part>
  548.     <part>
  549.         <id>80</id>
  550.         <type>button</type>
  551.         <visible> <true /> </visible>
  552.         <reserved5> 0 </reserved5>
  553.         <reserved4> 0 </reserved4>
  554.         <reserved3> 0 </reserved3>
  555.         <reserved2> 0 </reserved2>
  556.         <reserved1> 0 </reserved1>
  557.         <enabled> <true /> </enabled>
  558.         <rect>
  559.             <left>389</left>
  560.             <top>21</top>
  561.             <right>428</right>
  562.             <bottom>55</bottom>
  563.         </rect>
  564.         <style>roundrect</style>
  565.         <showName> <false /> </showName>
  566.         <highlight> <false /> </highlight>
  567.         <autoHighlight> <true /> </autoHighlight>
  568.         <sharedHighlight> <false /> </sharedHighlight>
  569.         <family>0</family>
  570.         <titleWidth>0</titleWidth>
  571.         <icon>20016</icon>
  572.         <textAlign>center</textAlign>
  573.         <font>Chicago</font>
  574.         <textSize>12</textSize>
  575.         <textStyle>plain</textStyle>
  576.         <name>Pie</name>
  577.         <script>on mouseUp-- Requires handler: goCardhide tool windowmakePieend mouseUpon makePieanswer "Which data you would like to make into a pie graph?" with "cancel" or "liabilities" or "assets"if it is "cancel" then exit makePieif it is "assets" then assetpieif it is "liabilities" then liabpieend makePieon assetpieset lockmessages to truelock screengo cd "networth"put field "assetnum" into a2put field "assetstot" into a1go cd "pie.asset"unlock screen with visual iris open fastput a2 into bg field "data"put a1 into bg field "total"send updatetotals to cd "pie.asset"send mouseUp to bg button "drawgraph"end assetpieon liabpieset lockmessages to truelock screengo cd "networth"put field "liabnum" into a2put field "liabstot" into a1go cd "pie.liab"unlock screen with visual iris open fastput a2 into bg field "data"put a1 into bg field "total"send updatetotals to cd "pie.liab"send mouseUp to bg button "drawgraph"end liabpie</script>
  578.     </part>
  579.     <part>
  580.         <id>76</id>
  581.         <type>button</type>
  582.         <visible> <false /> </visible>
  583.         <reserved5> 0 </reserved5>
  584.         <reserved4> 0 </reserved4>
  585.         <reserved3> 0 </reserved3>
  586.         <reserved2> 0 </reserved2>
  587.         <reserved1> 0 </reserved1>
  588.         <enabled> <true /> </enabled>
  589.         <rect>
  590.             <left>0</left>
  591.             <top>0</top>
  592.             <right>512</right>
  593.             <bottom>342</bottom>
  594.         </rect>
  595.         <style>opaque</style>
  596.         <showName> <false /> </showName>
  597.         <highlight> <false /> </highlight>
  598.         <autoHighlight> <false /> </autoHighlight>
  599.         <sharedHighlight> <true /> </sharedHighlight>
  600.         <family>0</family>
  601.         <titleWidth>0</titleWidth>
  602.         <icon>0</icon>
  603.         <textAlign>center</textAlign>
  604.         <font>Chicago</font>
  605.         <textSize>12</textSize>
  606.         <textStyle>plain</textStyle>
  607.         <name>white</name>
  608.         <script></script>
  609.     </part>
  610.     <part>
  611.         <id>74</id>
  612.         <type>field</type>
  613.         <visible> <true /> </visible>
  614.         <dontWrap> <false /> </dontWrap>
  615.         <dontSearch> <false /> </dontSearch>
  616.         <sharedText> <false /> </sharedText>
  617.         <fixedLineHeight> <true /> </fixedLineHeight>
  618.         <autoTab> <false /> </autoTab>
  619.         <lockText> <true /> </lockText>
  620.         <rect>
  621.             <left>181</left>
  622.             <top>17</top>
  623.             <right>343</right>
  624.             <bottom>57</bottom>
  625.         </rect>
  626.         <style>rectangle</style>
  627.         <autoSelect> <false /> </autoSelect>
  628.         <showLines> <false /> </showLines>
  629.         <wideMargins> <false /> </wideMargins>
  630.         <multipleLines> <false /> </multipleLines>
  631.         <reservedFamily> 0 </reservedFamily>
  632.         <titleWidth>0</titleWidth>
  633.         <icon>0</icon>
  634.         <textAlign>center</textAlign>
  635.         <font>Palatino</font>
  636.         <textSize>24</textSize>
  637.         <textStyle>extend</textStyle>
  638.         <textHeight>36</textHeight>
  639.         <name>title</name>
  640.         <script></script>
  641.     </part>
  642.     <part>
  643.         <id>79</id>
  644.         <type>field</type>
  645.         <visible> <true /> </visible>
  646.         <dontWrap> <false /> </dontWrap>
  647.         <dontSearch> <false /> </dontSearch>
  648.         <sharedText> <false /> </sharedText>
  649.         <fixedLineHeight> <false /> </fixedLineHeight>
  650.         <autoTab> <false /> </autoTab>
  651.         <lockText> <true /> </lockText>
  652.         <rect>
  653.             <left>223</left>
  654.             <top>60</top>
  655.             <right>307</right>
  656.             <bottom>75</bottom>
  657.         </rect>
  658.         <style>opaque</style>
  659.         <autoSelect> <false /> </autoSelect>
  660.         <showLines> <false /> </showLines>
  661.         <wideMargins> <false /> </wideMargins>
  662.         <multipleLines> <false /> </multipleLines>
  663.         <reservedFamily> 0 </reservedFamily>
  664.         <titleWidth>0</titleWidth>
  665.         <icon>0</icon>
  666.         <textAlign>center</textAlign>
  667.         <font>Geneva</font>
  668.         <textSize>10</textSize>
  669.         <textStyle>plain</textStyle>
  670.         <textHeight>13</textHeight>
  671.         <name>date</name>
  672.         <script></script>
  673.     </part>
  674.     <content>
  675.         <layer>background</layer>
  676.         <id>37</id>
  677.         <text>Month</text>
  678.     </content>
  679.     <content>
  680.         <layer>background</layer>
  681.         <id>39</id>
  682.         <text>wombats</text>
  683.     </content>
  684.     <content>
  685.         <layer>background</layer>
  686.         <id>38</id>
  687.         <text>Population</text>
  688.     </content>
  689.     <name>Graphs</name>
  690.     <script>on openCardglobal theData,theLabels,theTitle,theDataTitle,theUnitsget bg field "Graph Rect"set rect of bg btn "Frame" to line 1 of itset rect of bg btn "Grow" to line 2 of itunlock screenput the short date into bg field "date"if not bg field "Drew Data" thensend "drawChart" to this cardput true into bg field "Drew Data"end ifpass openCardend openCardon closeCard-- Requires handlers: saveRect,showInfosaveRect -- saves current frame sizeshowInfo falsepass closeCardend closeCardon enterInFieldclick at the loc of bg btn "Drawgraph"end enterInFieldon enterKeyclick at the loc of bg btn "Drawgraph"end enterKeyon closeBackgroundresetDataInfoend closeBackgroundon resetDataInfoglobal theData,theLabels,theTitle,theDataTitle,theUnitsput empty into theDataput empty into theLabelsput empty into theTitleput empty into theDataTitleput empty into theUnitsend resetDataInfoon goCardgo to card (the short name of the target) of this bkgndend goCardon goToCard whichCardget bg field "Graph Rect" of card whichCardset rect of bg btn "Frame" of card whichCard to line 1 of itset rect of bg btn "Grow" of card whichCard to line 2 of itvisual effect shrink to top slowgo to card whichCardwait while the mouseClick -- prevents redraw if user double clickedend goToCard-- Scripts for the Assets & Liabilities cards __on drawChart-- Requires handlers: showInfo,checkUserCancel,clearScreen-- Requires handlers: doPieChart,doLegend-- Requires function handler: stripReturns-- main set up procedure for drawing the graphshowInfo falsecheckUserCancelput stripReturns(bg fld "Labels") into labelsput (stripReturns(bg fld "Data")) into datarepeat with x=1 to the number of lines of dataput strip("$,",line x of data) into line x of dataend repeatif data is empty or number of lines in data = 1 then exit drawChartput stripReturns(bg fld "Labels Title") into graphTitleput stripReturns(bg fld "Graph Title") into legendTitleput rect of bg btn "Frame" into chartRectput rect of bg btn "Legend" into legendRectupdateTotalscheckUserCancelclearScreendoPieChart chartRect,data,graphTitledoLegend labels,data,legendTitleput true into bg fld "Drew Data"reset paintend drawCharton doPieChart chartRect,pieData,title-- Requires handlers: checkUserCancel,setFont-- Requires function handler: getPatternreset paintset cursor to watchcheckUserCancelput number of lines in pieData into dataCountput item 1 of chartRect into chartLeftput item 2 of chartRect into chartTopput item 3 of chartRect into chartRightput item 4 of chartRect into chartBottom-- adjust chartRect to account for the labelsadd 10 to chartLeftsubtract 10 from chartRightadd 25 to chartTopsubtract 8 from chartBottomput chartRight - chartLeft into chartWidthput chartBottom - chartTop into chartHeight-- add a title to the graphchoose text toolsetFont geneva,10,center,boldclick at (chartLeft + chartWidth div 2),(chartTop - 10)type line 1 of titleput chartTop into pieTopput round(min(chartWidth,chartHeight)) into pieDiameterput chartLeft + ((chartWidth - pieDiameter) div 2) into pieLeft-- draw outside circlechoose oval tooldrag from pieLeft,pieTop to (pieLeft + pieDiameter),(pieTop + pieDiameter)put bg field "Total" into totalput strip("$,",total) into total -- ‚Ä¢-- draw the pieChartput pieDiameter div 2 into pieRadiusput pieLeft + pieRadius into pieCenterXput pieTop + pieRadius into pieCenterYput zero into angleput zero into changeif total > 0 thenrepeat with slice = 1 to (dataCount + 1)checkUserCancelchoose line tool-- calculate and draw each section lineput pieCenterX + round(pieRadius * sin(angle)) into xput pieCenterY - round(pieRadius * cos(angle)) into ydrag from pieCenterX,pieCenterY to x,y-- fill section with a patternif change > .02 thenset pattern to getPattern(slice)choose bucket toolclick at halfX,halfYend ifput pi * (line slice of pieData) / total into changeadd change to angleput pieCenterX + round((pieRadius - 3) * sin(angle)) into halfXput pieCenterY - round((pieRadius - 3) * cos(angle)) into halfYadd change to angleend repeatend ifreset paintchoose browse toolend doPieCharton doLegend theLabels,data,title-- Requires handlers: checkUserCancel,setFont-- Requires function handlers: maxChars,rectHeight,rectWidthreset paintset cursor to watchput bg field "Percents" into thePercentsput rect of bg btn "Legend" into legendRectput max(the number of lines in theLabels,the number of lines in data) into numLabelsif numLabels <= 1 then exit doLegendput maxChars(theLabels) * 8 into maxLabelSizeput item 1 of legendRect + maxLabelSize + 70 into item 3 of legendRectput item 2 of legendRect + numLabels * 17 + 20 into item 4 of legendRectset rect of bg btn "Legend" to legendRectset bottomRight of bg btn "GrowLegend" to bottomRight of bg btn "Legend"put rectHeight(legendRect) into legendHeightput rectWidth(legendRect) into legendWidthput item 1 of legendRect into legendLeftput item 2 of legendRect into legendTopput item 3 of legendRect into legendRightput (legendHeight div numLabels + 1) div 2 into stepSizeput max(15,stepSize) into stepSizechoose text toolsetFont geneva,10,Left,boldput legendLeft + 10 into horzput legendTop + the textHeight - 5 into vertclick at legendLeft + 40,verttype title -- "Assets" or "Liabilities"add the textHeight + 15 to vertset filled to trueput 50 into offsetter -- how far to make right margin for assetsif title is "Liabilities" then put 18 into offsetterrepeat with labelCount = 1 to numLabelscheckUserCancel-- draw the boxchoose rectangle toolset pattern to getPattern(labelCount + 1)drag from horz,(vert - the textHeight) to horz + the textHeight,vert-- type the labelchoose text toolsetFont geneva,10,left,plainclick at horz + 20,verttype line labelCount of theLabelschoose select toolchoose text toolsetFont geneva,10,right,plainclick at horz + maxLabelSize + offsetter,verttype line labelCount of thePercents -- types the percentsadd stepSize + 2  to vertend repeatchoose browse toolend doLegendfunction getPattern thePatternreturn item (thePattern mod 14) + 1 of "13,11,22,14,20,17,6,3,5,1,9,19,15,2"end getPatternon updateTotals-- Requries function handlers: validatedData,totalValues,calcPercentsset cursor to watchput bg field "Data" into data-- strip out datarepeat with x=1 to the number of lines of dataput strip("$,",line x of data) into line x of dataend repeatput bg field "total" into dataTotalput strip("$,",datatotal) into datatotalget calcPercents(data,dataTotal)put item 1 of it into bg field "Percents"put item 2 of it into bg field "Percent Total"end updateTotalsfunction calcPercents data,dataTotal--  calculate percent of the total for each line of dataput 0 into percentTotalput empty into percentListif dataTotal ‚↠0 thenrepeat with dataCount = 1 to number of lines of dataput (line dataCount of data / dataTotal) * 100 into thePercentput round(thePercent) && "%" into line dataCount of percentList -- ‚àÜadd thePercent to percentTotalend repeatelserepeat with dataCount = 1 to number of lines of dataput line dataCount of data & "%" into line dataCount of percentList -- ‚àÜend repeatput dataTotal into percentTotalend ifreturn percentList & "," & percentTotal & "%" -- ‚àÜend calcPercents-----  Misc  ----------------------------------------------------on doDragBtn btnID,left,top,right,bottom-- drag a button within the card areaput (the clickH - item 1 of the loc of btnID) into horzStartput (the clickV - item 2 of the loc of btnID) into vertStartput width of btnID div 2 into horzOffsetput height of btnID div 2 into vertOffsetput horzOffset + left into cardLeftput vertOffset + top into cardTopput right - horzOffset into cardRightput bottom - vertOffset into cardBottomrepeat until the mouse is upput max(the mouseH - horzStart,cardLeft) into horzput min(horz,cardRight) into item 1 of newLocput max(the mouseV - vertStart,cardTop) into vertput min(vert,cardBottom) into item 2 of newLocset loc of btnID to newLocend repeatend doDragBtnon resetDrawFlagput "11352,13427,12850,14091" into cardIdNumsput value(the target) into theDatarepeat with count = 1 to 4put false into bg field "Drew Data" of card id (item count of cardIDNums)end repeatend resetDrawFlagon showInfo showHideend showInfo-----  Utilities  -----------------------------------------------on clearScreen-- removes the paint from the card layerchoose "Select Tool"doMenu "Select All"doMenu "Clear Picture"end clearScreenon setFont fontName,fontSize,fontAlignment,fontStyleif fontName is not empty then set textFont to fontNameif fontSize is not empty then set textSize to fontSizeif fontSize is not empty then set textheight to fontSizeif fontAlignment is not empty then set textAlign to fontAlignmentif fontStyle is not empty then set textStyle to fontStyleend setFonton saveRect-- "Graph Rect" is a hidden fieldput rect of bg btn "Frame" into line 1 of bg field "Graph Rect"put rect of bg btn "Grow" into line 2 of bg field "Graph Rect"end saveRecton checkUserCancelif the mouseClick thenchoose browse toolexit to hyperCardend ifend checkUserCancelfunction stripReturns theText -- remove all trailing return charsrepeat until last char of theText ‚↠returndelete last char of theTextend repeatreturn theTextend stripReturns-----  Data Functions  -----------------------------------------------function validatedData data,labelsput number of lines in data into numDatarepeat with count = 1 to numDataif ((line count of data is not a number) or ¬¨(line count of data < 0) or (line count of data is empty))then put zero into line count of dataend repeatreturn dataend validatedDatafunction roundUp anyNumber-- rounds a number to the nearest value divisible by 10,100,1000, etcput trunc(anyNumber) into wholeNumberput (10^(length(wholeNumber) - 1)) into divisorif wholeNumber mod divisor = 0 then return wholeNumberelse return (trunc((wholeNumber/divisor) + 1)) * divisorend roundUpfunction rectWidth theRect-- returns the width of a rectanglereturn item 3 of theRect - item 1 of theRectend rectWidthfunction rectHeight theRect-- returns the height of a rectanglereturn item 4 of theRect - item 2 of theRectend rectHeightfunction getMaxValue dataList-- returns the number with the highest valuesort dataList descending numericreturn line 1 of dataListend getMaxValuefunction maxChars textList-- determines the longest word of a listput 0 into longestrepeat with theLine = 1 to the number of lines in textListif length(line theLine of textList) > longestthen put length(line theLine of textList) into longestend repeatreturn longestend maxChars</script>
  691. </background>
  692.